package net.zjitc.mapper;

import net.zjitc.pojo.Category;
import net.zjitc.pojo.Condition;
import net.zjitc.pojo.Products;

import java.util.List;

public interface ProductsMapper {
    List<Products> findAllProducts();

    int addProduct(Products products);

    List<Category> findAllCategory();

    Products findProductById(String id);

    int deleteProduct(String id);

    int editProduct(Products products);

    List<Products> searchByCondition(Condition condition);


    Products findNewProducts(String product_id);

    Category findCategoryById(Integer id);

    List<Products> findProductByCid(Integer cid);
}
